package com.lemt.sunmao.response;

public enum ResponseCode {
    // 返回类型信息枚举
    SUCCESS("200","请求成功"),
    FAIL("9999","网络异常"),
    ERROR_01("9001","用户id错误"),
    ERROR_02("9002","用户名错误"),
    ERROR_03("9003","未查到用户"),
    ERROR_04("9004","请输入验证码"),
    ERROR_05("9005","验证码异常"),
    ERROR_06("9006","手机验证码输入错误"),
    ERROR_07("9007","用户名已存在"),
    ERROR_08("9008","请设置密码"),
    ERROR_09("9009","两次密码设置不同"),
    ERROR_10("9010","密码长度错误"),
    ERROR_11("9011","用户不存在"),
    ERROR_12("9012","该手机号未绑定用户"),
    ERROR_13("9013","登录异常"),
    ERROR_14("9014","手机号未输入"),
    ERROR_15("9015","密码错误"),
    ERROR_16("9016","未登录"),
    ERROR_17("9017","请勿重复提交认证"),
    ERROR_18("9018","用户名和密码不能为空"),
    ERROR_19("9019","不存在课程评论"),
    ERROR_20("9020","该课程不存在"),
    ERROR_21("9021","评论不能为空"),
    ERROR_22("9022","课程评论表未建立"),
    ERROR_23("9023","图形验证码输入错误"),
    ERROR_24("9024","删除异常"),
    ERROR_25("9025","该手机已绑定用户"),
    ERROR_26("9026","请勿重复收藏"),
    ERROR_27("9027","请输入邮箱"),
    ERROR_28("9028","验证码错误");

    String code;
    String msg;

    ResponseCode() {
    }

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
